package com.jinhua.medical.manager.mybatis.dto;

import java.util.ArrayList;
import java.util.List;

public class SysChineseMedicalExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer limitStart;

    protected Integer limitEnd;

    public SysChineseMedicalExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(Integer limitStart) {
        this.limitStart=limitStart;
    }

    public Integer getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(Integer limitEnd) {
        this.limitEnd=limitEnd;
    }

    public Integer getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("`uuid` is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("`uuid` is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(Integer value) {
            addCriterion("`uuid` =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(Integer value) {
            addCriterion("`uuid` <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(Integer value) {
            addCriterion("`uuid` >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(Integer value) {
            addCriterion("`uuid` >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(Integer value) {
            addCriterion("`uuid` <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(Integer value) {
            addCriterion("`uuid` <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<Integer> values) {
            addCriterion("`uuid` in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<Integer> values) {
            addCriterion("`uuid` not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(Integer value1, Integer value2) {
            addCriterion("`uuid` between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(Integer value1, Integer value2) {
            addCriterion("`uuid` not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andMedicalNameIsNull() {
            addCriterion("`medical_name` is null");
            return (Criteria) this;
        }

        public Criteria andMedicalNameIsNotNull() {
            addCriterion("`medical_name` is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalNameEqualTo(String value) {
            addCriterion("`medical_name` =", value, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameNotEqualTo(String value) {
            addCriterion("`medical_name` <>", value, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameGreaterThan(String value) {
            addCriterion("`medical_name` >", value, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameGreaterThanOrEqualTo(String value) {
            addCriterion("`medical_name` >=", value, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameLessThan(String value) {
            addCriterion("`medical_name` <", value, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameLessThanOrEqualTo(String value) {
            addCriterion("`medical_name` <=", value, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameLike(String value) {
            addCriterion("`medical_name` like", value, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameNotLike(String value) {
            addCriterion("`medical_name` not like", value, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameIn(List<String> values) {
            addCriterion("`medical_name` in", values, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameNotIn(List<String> values) {
            addCriterion("`medical_name` not in", values, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameBetween(String value1, String value2) {
            addCriterion("`medical_name` between", value1, value2, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalNameNotBetween(String value1, String value2) {
            addCriterion("`medical_name` not between", value1, value2, "medicalName");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceIsNull() {
            addCriterion("`medical_origin_price` is null");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceIsNotNull() {
            addCriterion("`medical_origin_price` is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceEqualTo(Double value) {
            addCriterion("`medical_origin_price` =", value, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceNotEqualTo(Double value) {
            addCriterion("`medical_origin_price` <>", value, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceGreaterThan(Double value) {
            addCriterion("`medical_origin_price` >", value, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("`medical_origin_price` >=", value, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceLessThan(Double value) {
            addCriterion("`medical_origin_price` <", value, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceLessThanOrEqualTo(Double value) {
            addCriterion("`medical_origin_price` <=", value, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceIn(List<Double> values) {
            addCriterion("`medical_origin_price` in", values, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceNotIn(List<Double> values) {
            addCriterion("`medical_origin_price` not in", values, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceBetween(Double value1, Double value2) {
            addCriterion("`medical_origin_price` between", value1, value2, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalOriginPriceNotBetween(Double value1, Double value2) {
            addCriterion("`medical_origin_price` not between", value1, value2, "medicalOriginPrice");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitIsNull() {
            addCriterion("`medical_unit` is null");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitIsNotNull() {
            addCriterion("`medical_unit` is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitEqualTo(String value) {
            addCriterion("`medical_unit` =", value, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitNotEqualTo(String value) {
            addCriterion("`medical_unit` <>", value, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitGreaterThan(String value) {
            addCriterion("`medical_unit` >", value, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitGreaterThanOrEqualTo(String value) {
            addCriterion("`medical_unit` >=", value, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitLessThan(String value) {
            addCriterion("`medical_unit` <", value, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitLessThanOrEqualTo(String value) {
            addCriterion("`medical_unit` <=", value, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitLike(String value) {
            addCriterion("`medical_unit` like", value, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitNotLike(String value) {
            addCriterion("`medical_unit` not like", value, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitIn(List<String> values) {
            addCriterion("`medical_unit` in", values, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitNotIn(List<String> values) {
            addCriterion("`medical_unit` not in", values, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitBetween(String value1, String value2) {
            addCriterion("`medical_unit` between", value1, value2, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalUnitNotBetween(String value1, String value2) {
            addCriterion("`medical_unit` not between", value1, value2, "medicalUnit");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceIsNull() {
            addCriterion("`medical_sale_price` is null");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceIsNotNull() {
            addCriterion("`medical_sale_price` is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceEqualTo(Double value) {
            addCriterion("`medical_sale_price` =", value, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceNotEqualTo(Double value) {
            addCriterion("`medical_sale_price` <>", value, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceGreaterThan(Double value) {
            addCriterion("`medical_sale_price` >", value, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceGreaterThanOrEqualTo(Double value) {
            addCriterion("`medical_sale_price` >=", value, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceLessThan(Double value) {
            addCriterion("`medical_sale_price` <", value, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceLessThanOrEqualTo(Double value) {
            addCriterion("`medical_sale_price` <=", value, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceIn(List<Double> values) {
            addCriterion("`medical_sale_price` in", values, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceNotIn(List<Double> values) {
            addCriterion("`medical_sale_price` not in", values, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceBetween(Double value1, Double value2) {
            addCriterion("`medical_sale_price` between", value1, value2, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andMedicalSalePriceNotBetween(Double value1, Double value2) {
            addCriterion("`medical_sale_price` not between", value1, value2, "medicalSalePrice");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("`description` is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("`description` is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("`description` =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("`description` <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("`description` >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("`description` >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("`description` <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("`description` <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("`description` like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("`description` not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("`description` in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("`description` not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("`description` between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("`description` not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andReamerkIsNull() {
            addCriterion("`reamerk` is null");
            return (Criteria) this;
        }

        public Criteria andReamerkIsNotNull() {
            addCriterion("`reamerk` is not null");
            return (Criteria) this;
        }

        public Criteria andReamerkEqualTo(String value) {
            addCriterion("`reamerk` =", value, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkNotEqualTo(String value) {
            addCriterion("`reamerk` <>", value, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkGreaterThan(String value) {
            addCriterion("`reamerk` >", value, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkGreaterThanOrEqualTo(String value) {
            addCriterion("`reamerk` >=", value, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkLessThan(String value) {
            addCriterion("`reamerk` <", value, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkLessThanOrEqualTo(String value) {
            addCriterion("`reamerk` <=", value, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkLike(String value) {
            addCriterion("`reamerk` like", value, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkNotLike(String value) {
            addCriterion("`reamerk` not like", value, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkIn(List<String> values) {
            addCriterion("`reamerk` in", values, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkNotIn(List<String> values) {
            addCriterion("`reamerk` not in", values, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkBetween(String value1, String value2) {
            addCriterion("`reamerk` between", value1, value2, "reamerk");
            return (Criteria) this;
        }

        public Criteria andReamerkNotBetween(String value1, String value2) {
            addCriterion("`reamerk` not between", value1, value2, "reamerk");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeIsNull() {
            addCriterion("`medical_type` is null");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeIsNotNull() {
            addCriterion("`medical_type` is not null");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeEqualTo(String value) {
            addCriterion("`medical_type` =", value, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeNotEqualTo(String value) {
            addCriterion("`medical_type` <>", value, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeGreaterThan(String value) {
            addCriterion("`medical_type` >", value, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeGreaterThanOrEqualTo(String value) {
            addCriterion("`medical_type` >=", value, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeLessThan(String value) {
            addCriterion("`medical_type` <", value, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeLessThanOrEqualTo(String value) {
            addCriterion("`medical_type` <=", value, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeLike(String value) {
            addCriterion("`medical_type` like", value, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeNotLike(String value) {
            addCriterion("`medical_type` not like", value, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeIn(List<String> values) {
            addCriterion("`medical_type` in", values, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeNotIn(List<String> values) {
            addCriterion("`medical_type` not in", values, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeBetween(String value1, String value2) {
            addCriterion("`medical_type` between", value1, value2, "medicalType");
            return (Criteria) this;
        }

        public Criteria andMedicalTypeNotBetween(String value1, String value2) {
            addCriterion("`medical_type` not between", value1, value2, "medicalType");
            return (Criteria) this;
        }

        public Criteria andStoreNumsIsNull() {
            addCriterion("`store_nums` is null");
            return (Criteria) this;
        }

        public Criteria andStoreNumsIsNotNull() {
            addCriterion("`store_nums` is not null");
            return (Criteria) this;
        }

        public Criteria andStoreNumsEqualTo(String value) {
            addCriterion("`store_nums` =", value, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsNotEqualTo(String value) {
            addCriterion("`store_nums` <>", value, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsGreaterThan(String value) {
            addCriterion("`store_nums` >", value, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsGreaterThanOrEqualTo(String value) {
            addCriterion("`store_nums` >=", value, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsLessThan(String value) {
            addCriterion("`store_nums` <", value, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsLessThanOrEqualTo(String value) {
            addCriterion("`store_nums` <=", value, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsLike(String value) {
            addCriterion("`store_nums` like", value, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsNotLike(String value) {
            addCriterion("`store_nums` not like", value, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsIn(List<String> values) {
            addCriterion("`store_nums` in", values, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsNotIn(List<String> values) {
            addCriterion("`store_nums` not in", values, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsBetween(String value1, String value2) {
            addCriterion("`store_nums` between", value1, value2, "storeNums");
            return (Criteria) this;
        }

        public Criteria andStoreNumsNotBetween(String value1, String value2) {
            addCriterion("`store_nums` not between", value1, value2, "storeNums");
            return (Criteria) this;
        }

        public Criteria andPinyinFullIsNull() {
            addCriterion("`pinyin_full` is null");
            return (Criteria) this;
        }

        public Criteria andPinyinFullIsNotNull() {
            addCriterion("`pinyin_full` is not null");
            return (Criteria) this;
        }

        public Criteria andPinyinFullEqualTo(String value) {
            addCriterion("`pinyin_full` =", value, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullNotEqualTo(String value) {
            addCriterion("`pinyin_full` <>", value, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullGreaterThan(String value) {
            addCriterion("`pinyin_full` >", value, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullGreaterThanOrEqualTo(String value) {
            addCriterion("`pinyin_full` >=", value, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullLessThan(String value) {
            addCriterion("`pinyin_full` <", value, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullLessThanOrEqualTo(String value) {
            addCriterion("`pinyin_full` <=", value, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullLike(String value) {
            addCriterion("`pinyin_full` like", value, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullNotLike(String value) {
            addCriterion("`pinyin_full` not like", value, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullIn(List<String> values) {
            addCriterion("`pinyin_full` in", values, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullNotIn(List<String> values) {
            addCriterion("`pinyin_full` not in", values, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullBetween(String value1, String value2) {
            addCriterion("`pinyin_full` between", value1, value2, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinFullNotBetween(String value1, String value2) {
            addCriterion("`pinyin_full` not between", value1, value2, "pinyinFull");
            return (Criteria) this;
        }

        public Criteria andPinyinCapIsNull() {
            addCriterion("`pinyin_cap` is null");
            return (Criteria) this;
        }

        public Criteria andPinyinCapIsNotNull() {
            addCriterion("`pinyin_cap` is not null");
            return (Criteria) this;
        }

        public Criteria andPinyinCapEqualTo(String value) {
            addCriterion("`pinyin_cap` =", value, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapNotEqualTo(String value) {
            addCriterion("`pinyin_cap` <>", value, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapGreaterThan(String value) {
            addCriterion("`pinyin_cap` >", value, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapGreaterThanOrEqualTo(String value) {
            addCriterion("`pinyin_cap` >=", value, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapLessThan(String value) {
            addCriterion("`pinyin_cap` <", value, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapLessThanOrEqualTo(String value) {
            addCriterion("`pinyin_cap` <=", value, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapLike(String value) {
            addCriterion("`pinyin_cap` like", value, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapNotLike(String value) {
            addCriterion("`pinyin_cap` not like", value, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapIn(List<String> values) {
            addCriterion("`pinyin_cap` in", values, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapNotIn(List<String> values) {
            addCriterion("`pinyin_cap` not in", values, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapBetween(String value1, String value2) {
            addCriterion("`pinyin_cap` between", value1, value2, "pinyinCap");
            return (Criteria) this;
        }

        public Criteria andPinyinCapNotBetween(String value1, String value2) {
            addCriterion("`pinyin_cap` not between", value1, value2, "pinyinCap");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}